package com.meng.netty.thread;

import com.meng.model.PointOfSale;

import java.util.concurrent.Callable;


/**
 * POS 线程
 *
 * @author MENG
 * @version 2018/3/21
 * @see
 */
public class WriteDataToRedisThread implements Callable
{
    private PointOfSale pointOfSale;

    public WriteDataToRedisThread(PointOfSale pointOfSale)
    {
        this.pointOfSale = pointOfSale;
    }

    @Override
    public Object call() throws Exception
    {
        pointOfSale.writeRedis();

        return null;
    }
}
